﻿using System.Linq;
using System.Web.Mvc;
using Web.Models;

namespace Web.Areas.ManagerArea.Controllers
{
    public class HomeController : Controller
    {
        // GET: ManagerArea/Hom
        public ActionResult Index()
        {
            using (var db = MyDbContext.Create())
            {
                ViewData.Model = db.AdminNavigations.OrderBy(m => m.OrderId).Where(m => !m.IsDeleted).ToList();
            }
            return View();
        }

        public ActionResult Console()
        {
            return View();
        }
    }
}